package cn.fintecher.pangolin.service.manage.request;

import cn.fintecher.pangolin.common.enums.BaseSelect;
import cn.fintecher.pangolin.common.enums.StatusType;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;

/**
 * @Auther: xiaqun
 * @Description: 新增状态配置请求
 * @Date: 9:57 2019/9/7
 */

@Data
public class AddConfigRequest {
    @ApiModelProperty(value = "编码")
    @NotNull(message = "config.code.is.required")
    private String code;

    @ApiModelProperty(value = "类型")
    @NotNull(message = "config.type.is.required")
    private StatusType type;

    @ApiModelProperty(value = "颜色")
    private String color;

    @ApiModelProperty(value = "名称")
    @NotNull(message = "config.name.is.required")
    private String name;

    @ApiModelProperty(value = "排序")
    private Integer sort;

    @ApiModelProperty(value = "是否重点跟进")
    @NotNull(message = "config.important.is.required")
    private BaseSelect isImportant;

    @ApiModelProperty(value = "委托方ID")
    private String principalId;

    @ApiModelProperty(value = "委托方名称")
    private String principalName;
}
